package com.game.thrones.service.web.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.game.thrones.domain.KbmContent;
import com.game.thrones.domain.webpage.WebNewsDO;
import com.game.thrones.service.BaseServiceImpl;
import com.game.thrones.service.web.WebNewsService;

@Service("webNewsService")
public class WebNewsServiceImpl extends BaseServiceImpl<WebNewsDO, Integer> implements WebNewsService {

	@Override
	public List<WebNewsDO> findListByType(KbmContent kbmContent, String type) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("type", type);
		return find(kbmContent, param);
	}

	@Override
	public WebNewsDO findOneByType(KbmContent kbmContent, String type) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("type", type);
		return findOne(kbmContent, param);
	}

}
